package main

import "fmt"

// 结构体是一块连续的内存
type ints struct {
	x int8 // 1byte = 8bit
	y int8
	z int8
}

func main() {
	var is = ints{10, 42, 5}
	fmt.Printf("x: %p\n", &(is.x)) // x: 0xc000014098
	fmt.Printf("y: %p\n", &(is.y)) // y: 0xc000014099
	fmt.Printf("z: %p\n", &(is.z)) // z: 0xc00001409a
}
